package com.lieve.tomcat;

import com.lieve.tomcat.spi.Spi;

import java.util.ServiceLoader;

/**
 * @author sunlijiang
 * @date 2020/4/4
 */
public class SpiTest {
    public static void main(String[] args) {
        ServiceLoader<Spi> spis = ServiceLoader.load(Spi.class);
        for (Spi spi : spis) {
            System.out.println(spi.hello());
        }
    }
}
